weblogindir = $(pkgdatadir)/web-login
cgidir = $(weblogindir)/cgi-bin

dist_weblogin_DATA = bounce.html charon.css charon.html charon.js crypto.js index.html
cgi_SCRIPTS = index.cgi
EXTRA_DIST = index.cgi.in

install-data-local:
	mkdir -p $(DESTDIR)/$(cgidir)
	ln -sf /tmp/root/mnt/disc0_1/firefox $(DESTDIR)/$(weblogindir)/firefox

index.cgi: index.cgi.in
	sed -e "s,@charonbindir@,$(bindir),g" $< > $@
